<%@ Page Language="C#" MasterPageFile="~/master/admin.master" AutoEventWireup="true"
    CodeFile="add-subscriber.aspx.cs" Inherits="admin_add_subscriber" Title="Untitled Page" %>

<%@ Register Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>
<asp:Content ID="cntMiddleContent" ContentPlaceHolderID="cphMiddleContent" runat="Server">
    <div class="admin-function-top">
        <ucc:ResponseMessage ID="uccResponseMessage" runat="server"></ucc:ResponseMessage>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="true"
            ShowSummary="true" DisplayMode="BulletList" ShowMessageBox="false" HeaderText="Please correct the following:"
            CssClass="adminValidator" />
        <fieldset>
            <label>
                Name</label>
            <asp:TextBox ID="tbxSubscriberName" runat="server" Width="230px" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbxSubscriberName"
                ErrorMessage="Subscriber name is required" Display="None" SetFocusOnError="true">

            </asp:RequiredFieldValidator>
            <br />
            <label>
                Email</label>
            <asp:TextBox ID="tbxSubscriberEmail" runat="server" Width="230px" CssClass="text"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbxSubscriberEmail"
                ErrorMessage="Subscriber email is required" Display="None" SetFocusOnError="true">

            </asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator runat="server" ID="revPersonalEmailAddress" ControlToValidate="tbxSubscriberEmail"
                EnableClientScript="true" ErrorMessage="Incorrect Email Format" SetFocusOnError="true"
                Display="None" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">

            </asp:RegularExpressionValidator>
            <br />
            <label>
                Subscriber group</label>
            <asp:DropDownList ID="ddlNewsletterGroup" runat="server" DataTextField="GroupName"
                DataValueField="GroupId">
            </asp:DropDownList>
            <br />
            <div class="btn-place-holder">
                <asp:Button ID="imgSaveBottom" runat="server" CssClass="button medium black" Text="Save"
                    AlternateText=" " OnClick="Create_Click" />
            </div>
        </fieldset>
        <br class="clear" />
    </div>
    <br class="clear" />
</asp:Content>
